import {IFormItem} from "@/base-ui/form";

export const YFormConfig: IFormItem[] = [
    {
        field: "key",
        label: "关键字",
        type: "input",
        value: "",
        placeholder: "关键字"
    },
    {
        field: "url",
        label: "url",
        type: "input",
        value: "",
        placeholder: "请输入url"
    },
    {
        field: "createDate",
        label: "创建日期",
        type: "datepicker",
        value: "",
        placeholder: "请输入创建时间范围"
    },
    {
        field: "rangeDate",
        label: "日期范围",
        type: "range-datepicker",
        value: "",
        placeholder: ["开始日期", "结束日期"]
    },
    {
        field: "time",
        label: "时间选择",
        type: "timepicker",
        value: "",
        placeholder: "请输入创建时间范围"
    },
    {
        field: "timeRange",
        label: "时间范围",
        type: "range-timepicker",
        value: "",
        placeholder: ["开始时间", "结束时间"]
    },
    {
        field: "selects",
        label: "下拉框",
        type: "select",
        value: [],
        placeholder: "",
        options: {
            mode: "tags",
            options: [
                {value: "select1", label: "选项1", disable: true, key: "key1", title: "title1"},
                {value: "select2", label: "选项2", disable: true, key: "key2", title: "title2"},
                {value: "select3", label: "选项3", disable: true, key: "key3", title: "title3"},
                {value: "select4", label: "选项4", disable: true, key: "key4", title: "title4"},
                {value: "select5", label: "选项5", disable: true, key: "key5", title: "title5"},
                {value: "select6", label: "选项6", disable: true, key: "key6", title: "title6"},
                {value: "select7", label: "选项7", disable: true, key: "key7", title: "title7"},
            ]
        }
    },
    {
        field: "password",
        label: "密码",
        type: "password",
        value: "",
        placeholder: "请输入密码"
    },
    {
        field: "status",
        label: "状态",
        type: "switch",
        value: "",
        placeholder: "请输入密码",
        options: {
            checkedChildren: "可用",
            checkedValue: true,
            unCheckedChildren: "不可用",
            unCheckedValue: false
        }
    },
];

export interface searchFormType{
    key: string
    url: string
    createDate: string
    rangeDate: any[]
    time: string
    timeRange: any[]
    selects: string[]
    password: string
    status: boolean
}


